﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RedDragon.Common.Domain.Process
{
    /// <summary>
    /// 工序明细表
    /// </summary>
    [SugarTable("ProcessDetail")]
    public class ProcessDetail
    {
        /// <summary>
        /// 工序明细id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int ProcessDetailId { get; set; }
        /// <summary>
        /// 工序管理外键
        /// </summary>
        public int ProcessId { get; set; }
        /// <summary>
        /// 资源(雪花id)
        /// </summary>
        public string ProcessDetailName { get; set; }
        /// <summary>
        /// 资源单位
        /// </summary>
        public int ProcessDetailUnits { get; set; }
        /// <summary>
        /// 资源用量
        /// </summary>
        public string? ProcessDetailDosage { get; set; }
        /// <summary>
        /// 摘要
        /// </summary>
        public string? Summary { get; set; }
        /// <summary>
        /// 成本
        /// </summary>
        public string? UnitsPrice { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool ProcessDetailState { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDelProcessDetail { get; set; }
    }
}
